package com.zuipin.entity;

import java.io.Serializable;

import com.zuipin.enums.GrowthValType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "成长值记录")
public class GrowthValRecord implements Serializable {
	
	private static final long	serialVersionUID	= 1L;
	
	private Long				id;							//
	
	private Short				delFlag;					// 删除标志:1是删除，0是未删除
	
	private Long				createId;					// 创建者
	
	private String				createTime;					// 创建时间
	
	private Long				updateId;					// 更新者
	
	private String				updateTime;					// 更新时间
	
	private Long				memberId;					// 会员ID
	
	private Long				sysId;						// 系统ID
	
	private Integer				beforeGrowthVal;			// 修改前金额
	
	private Integer				afterGrowthVal;				// 修改后金额
	
	private Integer				alterGrowthVal;				// 修改的金额
	
	private GrowthValType		growthValType;				// 成长值类型：购物送成长值，退款扣除成长值，签到送成长值，分享送成长值，评价送成长值，后台调整会员等级成长值变更
	
	private String				remark;						// 备注
	
	private Integer				searchTime;					// 搜索时间的条件 1为近三个月 2为近一年
	
	private String				describes;					// 描述
	
	private String				oddNumbers;					// 单号
	
	private Long				orderId;					// 订单ID
	
	private String				createName;					// vovo创建者
	
	@ApiModelProperty(value = "订单ID")
	public Long getOrderId() {
		return orderId;
	}
	
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	
	public Integer getSearchTime() {
		return searchTime;
	}
	
	public void setSearchTime(Integer searchTime) {
		this.searchTime = searchTime;
	}
	
	public GrowthValRecord() {
		// TODO Auto-generated constructor stub
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Short getDelFlag() {
		return delFlag;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Long getCreateId() {
		return createId;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public Long getUpdateId() {
		return updateId;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	@ApiModelProperty(value = "日期")
	public String getUpdateTime() {
		return updateTime;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public Long getMemberId() {
		return memberId;
	}
	
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	
	public Long getSysId() {
		return sysId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	public Integer getBeforeGrowthVal() {
		return beforeGrowthVal;
	}
	
	public void setBeforeGrowthVal(Integer beforeGrowthVal) {
		this.beforeGrowthVal = beforeGrowthVal;
	}
	
	public Integer getAfterGrowthVal() {
		return afterGrowthVal;
	}
	
	public void setAfterGrowthVal(Integer afterGrowthVal) {
		this.afterGrowthVal = afterGrowthVal;
	}
	
	@ApiModelProperty(value = "变更成长值")
	public Integer getAlterGrowthVal() {
		return alterGrowthVal;
	}
	
	public void setAlterGrowthVal(Integer alterGrowthVal) {
		this.alterGrowthVal = alterGrowthVal;
	}
	
	@ApiModelProperty(value = "成长值类型")
	public GrowthValType getGrowthValType() {
		return growthValType;
	}
	
	public void setGrowthValType(GrowthValType growthValType) {
		this.growthValType = growthValType;
	}
	
	@ApiModelProperty(value = "备注")
	public String getRemark() {
		return remark;
	}
	
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@ApiModelProperty(value = "备注描述")
	public String getDescribes() {
		return describes;
	}
	
	public void setDescribes(String describes) {
		this.describes = describes;
	}
	
	@ApiModelProperty(value = "备注单号信息")
	public String getOddNumbers() {
		return oddNumbers;
	}
	
	public void setOddNumbers(String oddNumbers) {
		this.oddNumbers = oddNumbers;
	}
	
	@ApiModelProperty(value = "创建者 ")
	public String getCreateName() {
		return createName;
	}
	
	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
	@ApiModelProperty(value = "成长值类型名称")
	public String getGrowthValTypeName() {
		if (growthValType != null) {
			return GrowthValType.findTypeName(growthValType.getName());
		} else {
			return "其他";
		}
	}
	
}
